
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.*, common.selectMenu, book.*, common.*" %>
<%
	// リクエスト文字列のエンコードを設定
	request.setCharacterEncoding("UTF-8");
%>
<%
 	session.setAttribute("stage", "2");
	request.setCharacterEncoding("UTF-8");
%>

<jsp:include page="/share/layout.jsp">
    <jsp:param name="title" value="書籍検索詳細"/>
    <jsp:param name="css" value="book.css"/>
    <jsp:param name="content">
        <jsp:attribute name="value">

<%
//IDパラメータの取得
//	パラメータをIntegerに変更	2013.10.16	若林
BookBean books=(BookBean)TableManager.getRecord(TableManager.BOOKS_TABLE, Integer.parseInt( request.getParameter("id") )).getBean();
	String title=books.getTitle();
	String writer=books.getWriter();
	String isbn=books.getIsbn();
	String publication_date=books.getPublicationDate();
	String content=books.getContent();
	String genre=books.getGenre();
	String publisher=books.getPublisher();
	String img = books.getPicture();

//	書籍ID取得	2013.10.17	矢野
	int id = books.getId();
%>

<!-- contents start -->

<div id="book_img">
<a href="/Books/book_img/<%= img %>.jpg" target="_blank">
	<img style="width: 160px;float:left;margin-top:30px;" src="/Books/book_img/<%= img %>.jpg">
</a>
</div>

<form action="" method="post">

<table width="600" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table style="width:auto" class="form_table">
<!--     書籍ID追加	2013.10.17	矢野 -->
     <tr>
    <th style="width:125px">書籍ID</th>
    <td style="width:450px"><%= id %></td>
  </tr>
  <tr>
    <th style="width:125px">タイトル</th>
    <td style="width:450px"><%= title %></td>
  </tr>
  <tr>
    <th>著者名</th>
    <td><%= writer %></td>
  </tr>
  <tr>
    <th>出版者</th>
    <td><%= publisher %></td>
  </tr>
  <tr>
    <th>ジャンル</th>
    <td><%= genre %></td>
  </tr>
  <tr>
    <th>ISBNコード</th>
    <td><%= isbn %></td>
  </tr>
  <tr>
    <th>発行年月日</th>
    <td><%= publication_date %></td>
  </tr>
  <tr>
    <th>内容</th>
    <td ><%= content %></td>
  </tr>
</table></td>
  </tr>
</table>
<input  class="button"  type="submit" name="button" id="button" value="戻る" onClick="history.back(); return false;">



<div id="btn_area"></div>

</form>



<!-- contents end -->
        </jsp:attribute>
    </jsp:param>
</jsp:include>
